Class AbstractConsoleControllerTestCase

Summary

Fully Qualified Name: Laminas\Test\PHPUnit\Controller\AbstractConsoleControllerTestCase
Extends: AbstractControllerTestCase

Description

Methods

Name Description Defined By
assertActionName() Assert that the application route match used the given action AbstractControllerTestCase
assertApplicationException() Assert the application exception and message AbstractControllerTestCase
assertConsoleOutputContains() Assert console output contain content (insensible case) AbstractConsoleControllerTestCase
assertControllerClass() Assert that the application route match used the given controller class AbstractControllerTestCase
assertControllerName() Assert that the application route match used the given controller name AbstractControllerTestCase
assertMatchedRouteName() Assert that the application route match used the given route name AbstractControllerTestCase
assertModuleName() Assert that the application route match used the given module AbstractControllerTestCase
assertModulesLoaded() Assert modules were loaded with the module manager AbstractControllerTestCase
assertNoMatchedRoute() Assert that the application did not match any route AbstractControllerTestCase
assertNotActionName() Assert that the application route match used NOT the given action AbstractControllerTestCase
assertNotConsoleOutputContains() Assert console output not contain content AbstractConsoleControllerTestCase
assertNotControllerClass() Assert that the application route match used NOT the given controller class AbstractControllerTestCase
assertNotControllerName() Assert that the application route match used NOT the given controller name AbstractControllerTestCase
assertNotMatchedRouteName() Assert that the application route match used NOT the given route name AbstractControllerTestCase
assertNotModuleName() Assert that the application route match used NOT the given module AbstractControllerTestCase
assertNotModulesLoaded() Assert modules were not loaded with the module manager AbstractControllerTestCase
assertNotResponseStatusCode() Assert not response status code AbstractControllerTestCase
assertNotTemplateName() Assert not template name Assert that a template was not used somewhere in the view model tree AbstractControllerTestCase
assertResponseStatusCode() Assert response status code AbstractControllerTestCase
assertTemplateName() Assert template name Assert that a template was used somewhere in the view model tree AbstractControllerTestCase
dispatch() Dispatch the MVC with a URL Accept a HTTP (simulate a customer action) or console route. AbstractControllerTestCase
getApplication() Get the application object AbstractControllerTestCase
getApplicationConfig() Get the application config AbstractControllerTestCase
getApplicationServiceLocator() Get the service manager of the application object AbstractControllerTestCase
getRequest() Get the application request object AbstractControllerTestCase
getResponse() Get the application response object AbstractControllerTestCase
getTraceError() Get the trace error flag AbstractControllerTestCase
getUseConsoleRequest() Get the usage of the console router or not AbstractControllerTestCase
reset() Reset the request AbstractControllerTestCase
setApplicationConfig() Set the application config AbstractControllerTestCase
setTraceError() Set the trace error flag AbstractControllerTestCase
setUseConsoleRequest() Set the usage of the console router or not AbstractControllerTestCase
triggerApplicationEvent() Trigger an application event AbstractControllerTestCase
url() Set the request URL AbstractControllerTestCase

Method Details

assertActionName()

Assert that the application route match used the given action

Parameter Name Type Description
$action string

Returns:

assertApplicationException()

Assert the application exception and message

Parameter Name Type Description
$message exception
$type
$message

Returns:

assertConsoleOutputContains()

Assert console output contain content (insensible case)

Parameter Name Type Description
$match string content

Returns: void

assertControllerClass()

Assert that the application route match used the given controller class

Parameter Name Type Description
$controller string

Returns:

assertControllerName()

Assert that the application route match used the given controller name

Parameter Name Type Description
$controller string

Returns:

assertMatchedRouteName()

Assert that the application route match used the given route name

Parameter Name Type Description
$route string

Returns:

assertModuleName()

Assert that the application route match used the given module

Parameter Name Type Description
$module string

Returns:

assertModulesLoaded()

Assert modules were loaded with the module manager

Parameter Name Type Description
$modules array

Returns:

assertNoMatchedRoute()

Assert that the application did not match any route

Returns:

assertNotActionName()

Assert that the application route match used NOT the given action

Parameter Name Type Description
$action string

Returns:

assertNotConsoleOutputContains()

Assert console output not contain content

Parameter Name Type Description
$match string content

Returns: void

assertNotControllerClass()

Assert that the application route match used NOT the given controller class

Parameter Name Type Description
$controller string

Returns:

assertNotControllerName()

Assert that the application route match used NOT the given controller name

Parameter Name Type Description
$controller string

Returns:

assertNotMatchedRouteName()

Assert that the application route match used NOT the given route name

Parameter Name Type Description
$route string

Returns:

assertNotModuleName()

Assert that the application route match used NOT the given module

Parameter Name Type Description
$module string

Returns:

assertNotModulesLoaded()

Assert modules were not loaded with the module manager

Parameter Name Type Description
$modules array

Returns:

assertNotResponseStatusCode()

Assert not response status code

Parameter Name Type Description
$code int

Returns:

assertNotTemplateName()

Assert not template name Assert that a template was not used somewhere in the view model tree

Parameter Name Type Description
$templateName string

Returns:

assertResponseStatusCode()

Assert response status code

Parameter Name Type Description
$code int

Returns:

assertTemplateName()

Assert template name Assert that a template was used somewhere in the view model tree

Parameter Name Type Description
$templateName string

Returns:

dispatch()

Dispatch the MVC with a URL Accept a HTTP (simulate a customer action) or console route.

The URL provided set the request URI in the request object.

Parameter Name Type Description
$url string
$method string|null
$params array|null
$isXmlHttpRequest

Returns:

getApplication()

Get the application object

Returns: \Laminas\Mvc\ApplicationInterface

getApplicationConfig()

Get the application config

Returns: array the application config

getApplicationServiceLocator()

Get the service manager of the application object

Returns: \Laminas\ServiceManager\ServiceManager

getRequest()

Get the application request object

Returns: \Laminas\Stdlib\RequestInterface

getResponse()

Get the application response object

Returns: \ResponseInterface

getTraceError()

Get the trace error flag

Returns: bool

getUseConsoleRequest()

Get the usage of the console router or not

Returns: bool $boolean

reset()

Reset the request

Parameter Name Type Description
$keepPersistence

Returns: \AbstractControllerTestCase

setApplicationConfig()

Set the application config

Parameter Name Type Description
$applicationConfig array

Returns: \AbstractControllerTestCase

setTraceError()

Set the trace error flag

Parameter Name Type Description
$traceError bool

Returns: \AbstractControllerTestCase

setUseConsoleRequest()

Set the usage of the console router or not

Parameter Name Type Description
$boolean bool

Returns: \AbstractControllerTestCase

triggerApplicationEvent()

Trigger an application event

Parameter Name Type Description
$eventName string

Returns: \Laminas\EventManager\ResponseCollection

url()

Set the request URL

Parameter Name Type Description
$url string
$method string|null
$params array|null

Returns: \AbstractControllerTestCase

Top